﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin1/SiteAdmin.master" AutoEventWireup="true" CodeFile="Travel.aspx.cs" Inherits="admin1_Travel" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<%@ Register Assembly="CKFinder" Namespace="CKFinder" TagPrefix="CKFinder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../ckeditor/ckeditor.js"></script>
    <script src="../ckfinder/ckfinder.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">


    <%-- Thêm tour --%>
    <%--<asp:Panel ID="panel_Add" Width="100%" runat="server" Visible="False">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon">
                        <i class="icon-info-sign"></i>
                    </span>
                    <span class="icon1">
                        <asp:LinkButton ID="lbt_ClosAdd" runat="server" OnClick="lbt_ClosAdd_Click"><img src="img/icons/16/close.png" /></asp:LinkButton>
                    </span>
                    <h5>Tạo chuyến đi theo thời gian cụ thể</h5>
                </div>
                <div class="widget-content nopadding">
                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="control-group">
                                <label class="control-label">Thể loại</label>
                                <div class="controls">
                                    <div class="ctr">
                                        <div class="rw">
                                            <asp:DropDownList ID="ddl_Category" runat="server" OnSelectedIndexChanged="ddl_Category_SelectedIndexChanged" AutoPostBack="true" Width="220px"></asp:DropDownList>
                                        </div>
                                        <div class="rw_text">Địa điểm</div>
                                        <div class="rw">
                                            <asp:DropDownList ID="ddl_Location" runat="server" OnSelectedIndexChanged="ddl_Location_SelectedIndexChanged" AutoPostBack="true" Width="220px"></asp:DropDownList>
                                        </div>
                                        <div class="rw_text">Chọn tour</div>
                                        <div class="rw">
                                            <asp:DropDownList ID="ddl_Tour" runat="server" Width="220px"></asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div class="control-group">
                        <label class="control-label">Thời gian khởi hành</label>
                        <div class="controls">
                            <div class="ctr">
                                <div class="rw">
                                    <asp:TextBox ID="txt_DateStart" runat="server" CssClass="datepicker"></asp:TextBox>
                                </div>
                                <div class="rw_text">Dẫn viên</div>
                                <div class="rw">
                                    <asp:DropDownList ID="ddl_Guide" runat="server" Width="220px"></asp:DropDownList>
                                </div>
                                <div class="rw_text">Trạng thái</div>
                                <div class="rw">
                                    <asp:RadioButtonList ID="rad_Available" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True" Value="True">Hiện</asp:ListItem>
                                        <asp:ListItem Value="False">Ẩn</asp:ListItem>
                                    </asp:RadioButtonList>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Ghi chú</label>
                        <div class="controls">
                            <asp:TextBox ID="txt_Notes" runat="server" TextMode="MultiLine" Width="925" Height="100"></asp:TextBox>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div class="controls">
                            <asp:Button ID="btnInsert" runat="server" Text="Save" OnClick="btnInsert_Click" class="btn btn-success" ValidationGroup="a" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>--%>
    <%--   chinh sửa--%>
    <asp:Panel ID="panel_Edit" Width="100%" runat="server" Visible="False">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon">
                        <i class="icon-info-sign"></i>
                    </span>
                    <span class="icon1">
                        <asp:LinkButton ID="lbt_CloseEdit" runat="server" OnClick="lbt_CloseEdit_Click"><img src="img/icons/16/close.png" /></asp:LinkButton>
                    </span>
                    <h5>Chỉnh sửa chuyến đi</h5>
                </div>
                <div class="widget-content nopadding">
                    <asp:TextBox ID="txt_TravelId" runat="server" Visible="false"></asp:TextBox>

                    <div class="control-group">
                        <label class="control-label">Ngày khởi hành tiếng anh</label>
                        <div class="controls">
                            <asp:TextBox ID="txt_DateStart_Edit" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                ErrorMessage="Chưa nhập ngày tiếng anh" ControlToValidate="txt_DateStart_Edit" ValidationGroup="a" style="color:red;"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Ngày khởi hành tiếng việt</label>
                        <div class="controls">
                            <asp:TextBox ID="txt_DateStart_EditVN" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ErrorMessage="Chưa nhập ngày tiếng việt" ControlToValidate="txt_DateStart_EditVN" ValidationGroup="a" style="color:red;"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Hướng dẫn viên</label>
                        <div class="controls">
                            <asp:DropDownList ID="ddl_Guide_Edit" runat="server" Width="220px"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="control-group">
                            <asp:Button ID="btn_Save_Edit" runat="server" Text="Save change" OnClick="btn_Save_Edit_Click" class="btn btn-success" ValidationGroup="a" />
                       
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <%-- box Category--%>
    <div class="row-fluid" style="margin-top: 10px;">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon"><i class="icon-th"></i></span>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered data-table">
                        <thead>
                            <tr>
                                <th>Mã</th>
                                <th>Tên tour</th>
                                <th>Ngày khởi hành</th>
                                <th>Ngày khởi hành tiếng việt</th>
                                <th>Hướng dẫn viên</th>
                                <th>Chức Năng</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="rpt_Category" runat="server">
                                <ItemTemplate>
                                    <tr class="gradeX">
                                        <td class="center"><%#Eval("TravelId") %></td>
                                        <td><%#Eval("TourName") %></td>
                                        <td><%#Eval("DateStart") %></td>
                                        <td><%#Eval("DateStartVN") %></td>
                                        <td><%#Eval("GuideId")%></td>
                                        <td class="center">
                                            <%--<a href="EditTour.aspx?tourid=<%#Eval("TravelId") %>">
                                                <img src="img/icons/16/create.png" width="14" height="18"></a>--%>
                                            <asp:LinkButton ID="lbtChinhSua" CommandArgument='<%#Eval("TravelId") %>' runat="server" ToolTip="Chỉnh Sửa" OnClick="lbtChinhSua_Click"><img src="img/icons/16/create.png" width="16" height="18"/></asp:LinkButton>
                                            &nbsp;&nbsp;<%--<asp:LinkButton ID="btnxoa" CommandArgument='<%#Eval("TravelId") %>' runat="server" ToolTip="Xóa" OnClick="btnxoa_Click" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa?');"><img src="img/icons/16/delete.png" width="16" height="18"/></asp:LinkButton>--%>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

